package cn.itedus.lottery.domain.supports.ids.policy;

import cn.itedus.lottery.domain.supports.ids.IIdGenerator;
import org.apache.commons.lang3.RandomStringUtils;
import org.springframework.stereotype.Component;

/**
 * 具类生成 org.apache.commons.lang3.RandomStringUtils
 *
 * @author 闫佳成
 * @version: 1.0
 * @since 2024/10/29 16:07
 */
@Component
public class RandomNumeric implements IIdGenerator {
    @Override
    public long nextId() {
        return Long.parseLong(RandomStringUtils.randomNumeric(11));
    }
}
